package com.dongdongshop.service;

import com.dongdongshop.pojo.Cart;

import java.util.List;

public interface CartService {
    List<Cart> addCart(List<Cart> cart, Long itemId, Integer num);

    //将购物车数据放入redis当中
    void addCartListToRedis(List<Cart> cartList,Long id);

    //从redis中获取购物车数据
    List<Cart> findRedisCartList(Long id);

    //合并购物车
    List<Cart> merageCartList(List<Cart> reidsCartList,List<Cart> cookieCartList);
}
